home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / ds5000.md / RCS / varargs.h,v < prev    next >
Encoding:
Text File  |  1991-12-03  |  2.2 KB  |  115 lines

  1. head     1.3;
  2. branch   ;
  3. access   ;
  4. symbols  sprited:1.3.1;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.3
  10. date     90.11.16.00.25.06;  author shirriff;  state Exp;
  11. branches 1.3.1.1;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     90.11.06.13.57.53;  author rab;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     89.07.08.14.56.14;  author nelson;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24. 1.3.1.1
  25. date     91.12.02.21.22.40;  author kupfer;  state Exp;
  26. branches ;
  27. next     ;
  28.  
  29.  
  30. desc
  31. @Initial version from DECWRL.
  32. @
  33.  
  34.  
  35. 1.3
  36. log
  37. @Fixed ifdefs.
  38. @
  39. text
  40. @/*    @@(#)varargs.h    4.3    (ULTRIX)    11/2/88        */
  41. /* ------------------------------------------------------------------ */
  42. /* | Copyright Unpublished, MIPS Computer Systems, Inc.  All Rights | */
  43. /* | Reserved.  This software contains proprietary and confidential | */
  44. /* | information of MIPS and its suppliers.  Use, disclosure or     | */
  45. /* | reproduction is prohibited without the prior express written   | */
  46. /* | consent of MIPS.                                               | */
  47. /* ------------------------------------------------------------------ */
  48. /* $Header: /sprite/src/lib/include/ds3100.md/RCS/varargs.h,v 1.2 90/11/06 13:57:53 rab Exp $ */
  49.  
  50. /*    @@(#)varargs.h    1.2    */
  51. #ifndef _VARARGS_H
  52. #define _VARARGS_H
  53.  
  54. #ifndef _VA_LIST
  55. #define _VA_LIST
  56. typedef char *va_list;
  57. #endif
  58.  
  59. #define va_dcl int va_alist;
  60. #define va_start(list) list = (char *) &va_alist
  61. #define va_end(list)
  62.  
  63. #ifdef lint /* complains about constant in conditional context */
  64.  
  65. #define va_arg(list, mode) ((mode *)(list += sizeof(mode)))[-1]
  66.  
  67. #else /* !lint */
  68.  
  69. #define va_arg(list, mode) ((mode *)(list = \
  70.     (char *) (sizeof(mode) > 4 ? ((int)list + 2*8 - 1) & -8 \
  71.                    : ((int)list + 2*4 - 1) & -4)))[-1]
  72.  
  73. #endif /* lint */
  74. #endif /* _VARARGS_H */
  75. @
  76.  
  77.  
  78. 1.3.1.1
  79. log
  80. @Initial branch for Sprite server.
  81. @
  82. text
  83. @d9 1
  84. a9 1
  85. /* $Header: /sprite/src/lib/include/ds3100.md/RCS/varargs.h,v 1.3 90/11/16 00:25:06 shirriff Exp $ */
  86. @
  87.  
  88.  
  89. 1.2
  90. log
  91. @Put in ifdef so include is idempotent.
  92. @
  93. text
  94. @d9 1
  95. a9 1
  96. /* $Header: /sprite/src/lib/include/ds3100.md/RCS/varargs.h,v 1.1 89/07/08 14:56:14 nelson Exp Locker: rab $ */
  97. d12 5
  98. a16 1
  99. #ifdef _VARARGS_H
  100. d18 2
  101. @
  102.  
  103.  
  104. 1.1
  105. log
  106. @Initial revision
  107. @
  108. text
  109. @d9 1
  110. a9 1
  111. /* $Header: varargs.h,v 1.1 89/06/02 14:35:46 mnelson Exp $ */
  112. d12 1
  113. d29 1
  114. @
  115.